<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>审理环节-实现系统生成《稽查部门税务处理处罚决定数据汇总表及工作底稿（月度）》报表</title>
    <link rel="stylesheet" href="/layui/v10/layui.css" media="all">
    <link rel="stylesheet" href="/css/custom.form.css">
</head>
<body>


<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header"></div>
                <div class="layui-card-body">
                    <div class="layui-tab layui-tab-brief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">未保存</li>
                            <li>已保存</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <div class="cqyj_table_div">
                                    <form id="searchForm" class="layui-form" method="post" style="margin-left: 10px">
                                        <div class="layui-form-item">
                                            <div class="layui-input-inline">
                                                <label for="jcajbh"></label><input type="text" id="jcajbh"
                                                                                   class="layui-input"
                                                                                   autocomplete="off"
                                                                                   placeholder="请输案件编号">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="nsrsbh"></label><input type="text" id="nsrsbh"
                                                                                   class="layui-input"
                                                                                   autocomplete="off"
                                                                                   placeholder="请输纳税人识别号">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="nsrmc"></label><input type="text" id="nsrmc"
                                                                                  class="layui-input"
                                                                                  autocomplete="off"
                                                                                  placeholder="请输入纳税人名称">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="time"></label><input type="text" readonly
                                                                                 class="layui-input" id="time"
                                                                                 placeholder="立案日期">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="sdztDm"></label>
                                                <select id="sdztDm">
                                                    <option value="">请选择是否出两书</option>
                                                    <option value="Y">是</option>
                                                    <option value="N">否</option>
                                                </select>
                                            </div>
                                            <div class="layui-input-inline">
                                                <button type="button" class="layui-btn" onclick="searchWbc()">查询
                                                </button>
                                                <button type="button" class="layui-btn" lay-submit=""
                                                        lay-filter="reset">
                                                    重置
                                                </button>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <span style="color: red;font-size: 12px;margin-left: 10px">涉嫌金额:人工录时 如果案件定性字段选择逃避缴纳税款、骗取出口退税、骗取留抵退税、补税、其他，该字段录入偷税金额、骗取出口退税金额、补税金额、涉税金额；如果案件定性选择虚开增值税发票，该字段录入虚开发票金额。</span>
                                        </div>
                                        <table class="layui-hide" id="cljdsTable" lay-filter="cljdsTable"></table>
                                    </form>
                                </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="cqyj_table_div">
                                    <form id="searchForm0" class="layui-form" method="post" style="margin-left: 10px">
                                        <div class="layui-form-item">
                                            <div class="layui-input-inline">
                                                <label for="jcajbh0"></label><input type="text" id="jcajbh0"
                                                                                    class="layui-input"
                                                                                    autocomplete="off"
                                                                                    placeholder="请输案件编号">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="nsrsbh0"></label><input type="text" id="nsrsbh0"
                                                                                    class="layui-input"
                                                                                    autocomplete="off"
                                                                                    placeholder="请输纳税人识别号">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="nsrmc0"></label><input type="text" id="nsrmc0"
                                                                                   class="layui-input"
                                                                                   autocomplete="off"
                                                                                   placeholder="请输入纳税人名称">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="time0"></label><input type="text" readonly
                                                                                  class="layui-input"
                                                                                  id="time0"
                                                                                  placeholder="立案日期">
                                            </div>
                                            <div class="layui-input-inline">
                                                <label for="sdztDm0"></label>
                                                <select id="sdztDm0">
                                                    <option value="">请选择是否出两书</option>
                                                    <option value="Y">是</option>
                                                    <option value="N">否</option>
                                                </select>
                                            </div>
                                            <div class="layui-input-inline" style="width: auto">
                                                <button type="button" class="layui-btn" onclick="searchYbc()">查询
                                                </button>
                                                <button type="button" class="layui-btn" id="reset0">重置</button>
                                                <button type="button" class="layui-btn" id="exportBtn">导出</button>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <span style="color: red;font-size: 12px;margin-left: 10px">当前案源数据时间范围：2023年1月1日-至今</span>
                                        </div>
                                        <table class="layui-hide" id="ycljdsTable" lay-filter="ycljdsTable"></table>
                                        <div style="display: none">
                                            <table class="layui-hide" id="exportTable" lay-filter="exportTable"></table>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/html" id="selectTpl">
    <select name="ajdx" lay-filter="selectCf" lay-append-to="body" lay-data-jcajxxuuid="{{d.jcajxxuuid}}">
        <option value="">请选择</option>
        <option value="偷税" {{d.ajdx==='偷税' ?
        'selected' : ''}}>逃避缴纳税款</option>
        <option value="骗取出口退税" {{d.ajdx==='骗取出口退税' ?
        'selected' : ''}}>骗取出口退税</option>
        <option value="骗取出口退税" {{d.ajdx==='骗取留抵退税' ?
        'selected' : ''}}>骗取留抵退税</option>
        <option value="虚开增值税发票" {{d.ajdx==='虚开增值税发票' ?
        'selected' : ''}}>虚开增值税发票</option>
        <option value="补税" {{d.ajdx==='补税' ?
        'selected' : ''}}>补税</option>
        <option value="其他" {{d.ajdx==='其他' ?
        'selected' : ''}}>其他</option>
    </select>
</script>

<script type="text/html" id="selectSf">
    <label>
        <select name="sf" lay-filter="selectSf" lay-append-to="body" lay-data-jcajxxuuid="{{d.jcajxxuuid}}">
            <option value="">请选择</option>
            <option value="是" {{d.sfyjga===
            '是' ? 'selected' : ''}}>是</option>
            <option value="否" {{d.sfyjga===
            '否' ? 'selected' : ''}}>否</option>
        </select>
    </label>
</script>

<script type="text/html" id="selectjj">
    <label>
        <select name="sf" lay-filter="selectjj" lay-append-to="body" lay-data-jcajxxuuid="{{d.jcajxxuuid}}">>
            <option value="">请选择</option>
            <option value="是" {{d.jcsfyjjj===
            '是' ? 'selected' : ''}}>是</option>
            <option value="否" {{d.jcsfyjjj===
            '否' ? 'selected' : ''}}>否</option>
        </select>
    </label>
</script>

<!-- 保存模板 -->
<script type="text/html" id="saveTool">
    <a class="layui-btn layui-btn-xs" lay-event="save">保存</a>
</script>
<script src="/layui/v10/layui.js"></script>
<script src="/js/core.util.js"></script>
<script src="/layui/xm-select.js"></script>
<script th:inline="none">
    // 获取token
    let token = CoreUtil.getData("access_token");
    // 地址栏转义token中的#号
    let tokenQuery = token.replace("#", "%23");
    let tableIns1;
    let tableIns2;
    let tableIns3;
    let table = layui.table;
    let form = layui.form;
    let layer = layui.layer;
    let $ = jQuery = layui.jquery;
    let laydate = layui.laydate;
    let tree = layui.tree;
    let startTime = null;
    let startTime0 = null;
    let endTime = null;
    let endTime0 = null;
    let ajztDms;

    let ajdx = null;
    let sfyjga = null;
    let jcsfyjjj = null;


    layui.config({
        base: '/'
    }).use(['table', 'laypage', 'layer', 'laydate', 'form', 'element'], function () {
        // 默认科室下拉选
        tableIns1 = table.render({
            elem: '#cljdsTable',
            loading: true,
            page: true, // 开启分页
            css: [ // 设置单元格样式
                // 取消默认的溢出隐藏，并设置适当高度
                '.layui-table-cell{height: 50px; line-height: 40px;}',
                '.layui-table-cell .layui-colorpicker{width: 38px; height: 38px;}',
                '.layui-table-cell select{height: 36px; padding: 0 5px;}'
            ].join(''),
            where: {
                "tbbz": "N"
            },
            contentType: 'application/json',
            headers: {"authorization": token},
            url: '/attention/attentionMgr/queryClcfjdbbTable', // 数据接口
            method: 'POST',
            parseData: function (res) { // 将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, // 解析接口状态
                    "msg": res.msg, // 解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, // 解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null : res.data.records // 解析数据列表
                };
            },
            cols: [
                [
                    // {type: 'checkbox', fixed: 'left'},
                    {field: 'jcajxxuuid', title: '主键', width: 0, hide: true},
                    {field: 'swjgmc', title: '所属稽查局', width: 260, align: "center", sort: true},
                    {field: 'nsrmc', title: '纳税人名称', width: 260, align: "center", sort: true},
                    {field: 'jcajbh', title: '稽查案件编号', width: 180, align: "center", sort: true},
                    {field: 'ajly', title: '案件来源', width: 120, align: "center", sort: true},
                    {
                        field: 'ajdx',
                        title: '案件定性',
                        width: 250,
                        align: 'center',
                        sort: true,
                        templet: function (d) {
                            return '<div  id="XM-' + d.jcajxxuuid + '" ></div>'
                        }
                    },
                    {field: 'ssje', title: '涉税金额（万元）', width: 180, align: 'center', sort: true, edit: 'text'},
                    {field: 'fpfs', title: '发票份数', width: 180, align: "center", sort: true, edit: 'text'},
                    {
                        field: 'sfyjga',
                        title: '是否移交公安',
                        width: 180,
                        align: "center",
                        sort: true,
                        templet: '#selectSf'
                    },
                    {
                        field: 'jcsfyjjj',
                        title: '稽查是否移交纪检',
                        width: 180,
                        align: "center",
                        sort: true,
                        templet: '#selectjj'
                    }, {
                    fixed: 'right',
                    align: 'center',
                    width: 120,
                    toolbar: "#saveTool",
                    title: '操作'
                }]
            ],
            done: function (res) {
                // 重新渲染 select，确保 lay-append-to="body" 生效
                form.render('select');
                //渲染多选
                res.data.forEach(item => {
                    var xm = xmSelect.render({
                        el: '#XM-' + item.jcajxxuuid,
                        model: {type: 'fixed'},
                        data: [
                            {name: '逃避缴纳税款', value: '逃避缴纳税款'},
                            {name: '骗取出口退税', value: '骗取出口退税'},
                            {name: '骗取留抵退税', value: '骗取留抵退税'},
                            {name: '虚开增值税发票', value: '虚开增值税发票'},
                            {name: '补税', value: '补税'},
                            {name: '其他', value: '其他'},
                        ],
                        on: function (data) {
                            // 将选中值保存到表格行数据 (用逗号分隔)
                            item.ajdx = data.arr.map(v => v.value).join(',');
                        }
                    })
                    // 初始值处理（如果后端已有数据）
                    if (item.ajdx) {
                        xm.setValue(item.ajdx.split(','));
                    }
                    item.__xm = xm;
                })
            },
            toolbar: '#toolbar1'
        });
        tableIns2 = table.render({
            elem: '#ycljdsTable',
            loading: true,
            page: true, // 开启分页
            css: [ // 设置单元格样式
                // 取消默认的溢出隐藏，并设置适当高度
                '.layui-table-cell{height: 50px; line-height: 40px;}',
                '.layui-table-cell .layui-colorpicker{width: 38px; height: 38px;}',
                '.layui-table-cell select{height: 36px; padding: 0 5px;}'
            ].join(''),
            where: {
                "tbbz": "Y"
            },
            contentType: 'application/json',
            headers: {"authorization": token},
            url: '/attention/attentionMgr/queryClcfjdbbTable', // 数据接口
            method: 'POST',
            parseData: function (res) { // 将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, // 解析接口状态
                    "msg": res.msg, // 解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, // 解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null : res.data.records // 解析数据列表
                };
            },
            cols: [
                [
                    // {type: 'checkbox', fixed: 'left'},
                    {field: 'jcajxxuuid', title: '主键', width: 0, hide: true},
                    {field: 'swjgmc', title: '所属稽查局', width: 260, align: "center", sort: true},
                    {field: 'nsrmc', title: '纳税人名称', width: 260, align: "center", sort: true},
                    {field: 'jcajbh', title: '稽查案件编号', width: 180, align: "center", sort: true},
                    {field: 'ajly', title: '案件来源', width: 180, align: "center", sort: true},
                    {
                        field: 'ajdx',
                        title: '案件定性',
                        width: 250,
                        align: 'center',
                        sort: true,
                        templet: function (d) {
                            return '<div  id="XMD-' + d.jcajxxuuid + '" ></div>'
                        }
                    },
                    {field: 'ssje', title: '涉税金额（万元）', width: 180, align: 'center', sort: true, edit: 'text'},
                    {field: 'fpfs', title: '发票份数', width: 180, align: "center", sort: true, edit: 'text'},
                    {
                        field: 'sfyjga',
                        title: '是否移交公安',
                        width: 180,
                        align: "center",
                        sort: true,
                        templet: '#selectSf'
                    },
                    {
                        field: 'jcsfyjjj',
                        title: '稽查是否移交纪检',
                        width: 180,
                        align: "center",
                        sort: true,
                        templet: '#selectjj'
                    }, {
                    fixed: 'right',
                    align: 'center',
                    width: 120,
                    toolbar: "#saveTool",
                    title: '操作'
                }]
            ],
            done: function (res) {
                // 重新渲染 select，确保 lay-append-to="body" 生效
                form.render('select');
                //渲染多选
                res.data.forEach(item => {
                    var xm = xmSelect.render({
                        el: '#XMD-' + item.jcajxxuuid,
                        model: {type: 'fixed'},
                        data: [
                            {name: '逃避缴纳税款', value: '逃避缴纳税款'},
                            {name: '骗取出口退税', value: '骗取出口退税'},
                            {name: '骗取留抵退税', value: '骗取留抵退税'},
                            {name: '虚开增值税发票', value: '虚开增值税发票'},
                            {name: '补税', value: '补税'},
                            {name: '其他', value: '其他'},
                        ],
                        on: function (data) {
                            // 将选中值保存到表格行数据 (用逗号分隔)
                            item.ajdx = data.arr.map(v => v.value).join(',');
                        }
                    })
                    // 初始值处理（如果后端已有数据）
                    if (item.ajdx) {
                        xm.setValue(item.ajdx.split(','));
                    }
                    item.__xm = xm;
                })
            },
            toolbar: '#toolbar1'
        });
        //导出表格
        tableIns3 = table.render({
            elem: '#exportTable',
            loading: true,
            page: true, // 开启分页
            css: [ // 设置单元格样式
                // 取消默认的溢出隐藏，并设置适当高度
                '.layui-table-cell{height: 50px; line-height: 40px;}',
                '.layui-table-cell .layui-colorpicker{width: 38px; height: 38px;}',
                '.layui-table-cell select{height: 36px; padding: 0 5px;}'
            ].join(''),
            where: {
                "tbbz": "Y"
            },
            contentType: 'application/json',
            headers: {"authorization": token},
            url: '/attention/attentionMgr/queryClcfjdbbTable', // 数据接口
            method: 'POST',
            parseData: function (res) { // 将原始数据解析成 table 组件所规定的数据
                return {
                    "code": res.code, // 解析接口状态
                    "msg": res.msg, // 解析提示文本
                    "count": CoreUtil.isEmpty(res.data) ? 0 : res.data.total, // 解析数据长度
                    "data": CoreUtil.isEmpty(res.data) ? null : res.data.records // 解析数据列表
                };
            },
            cols: [
                [
                    {field: 'jcajxxuuid', title: '主键', width: 0, hide: true},
                    {field: 'swjgmc', title: '所属稽查局', width: 260, align: "center", sort: true},
                    {field: 'nsrmc', title: '纳税人名称', width: 260, align: "center", sort: true},
                    {field: 'jcajbh', title: '稽查案件编号', width: 180, align: "center", sort: true},
                    {field: 'ajly', title: '案件来源', width: 180, align: "center", sort: true},
                    {field: 'ajdx', title: '案件定性', width: 250, align: 'center', sort: true},
                    {field: 'ssje', title: '涉税金额（万元）', width: 180, align: 'center', sort: true},
                    {field: 'fpfs', title: '发票份数', width: 180, align: "center", sort: true},
                    {
                        field: 'sfyjga',
                        title: '是否移交公安',
                        width: 180,
                        align: "center",
                        sort: true
                    },
                    {
                        field: 'jcsfyjjj',
                        title: '稽查是否移交纪检',
                        width: 180,
                        align: "center",
                        sort: true
                    }
                ]
            ],
            done: function () {
                // 重新渲染 select，确保 lay-append-to="body" 生效
                form.render('select');
            },
            toolbar: '#toolbar1'
        });


        document.querySelector('.layui-table-body').addEventListener('scroll', () => {
            xmSelect.get().forEach(function (item) {
                item.calcPosition();
            })
        })

        // 监听下拉选框的切换
        form.on('select(selectCf)', function (data) {
            ajdx = data.value;
            console.log("ajdx:案件定性：", ajdx)
        });

        //是否
        form.on('select(selectSf)', function (data) {
            sfyjga = data.value; // 获取选中的值
            console.log("ajdx:sfyjga：", sfyjga)
        });
        form.on('select(selectjj)', function (data) {
            jcsfyjjj = data.value; // 获取选中的值
            console.log("ajdx:jcsfyjjj：", jcsfyjjj)
        });

        // 日期
        laydate.render({
            elem: '#time',
            type: 'date',
            range: '~',
            done: function (value) {
                if (value !== null && value !== undefined && value !== "") {
                    startTime = value.split("~")[0];
                    endTime = value.split("~")[1];
                } else {
                    startTime = null;
                    endTime = null;
                }
            }
        });

        laydate.render({
            elem: '#time0',
            type: 'date',
            range: '~',
            done: function (value) {
                if (value !== null && value !== undefined && value !== "") {
                    startTime0 = value.split("~")[0];
                    endTime0 = value.split("~")[1];
                } else {
                    startTime0 = null;
                    endTime0 = null;
                }
            }
        });

        // 保存列操作
        table.on('tool(cljdsTable)', function (obj) {
            console.log(obj);
            const data = obj.data;
            switch (obj.event) {
                case 'save':
                    if (!data.ajdx) {
                        layer.msg('请先选择案件定性!', {icon: 5});  // 弹出提示
                        return;  // 终止后续代码执行
                    }
                    if (!data.ssje) {
                        layer.msg('请填写涉税金额!', {icon: 5});
                        return;
                    }
                    if (!data.fpfs) {
                        layer.msg('请填写发票份数!', {icon: 5});
                        return;
                    }
                    if (!sfyjga) {
                        layer.msg('请填写是否移交公安!', {icon: 5});
                        return;
                    } else {
                        data.sfyjga = sfyjga
                    }
                    if (!jcsfyjjj) {
                        layer.msg('请填写稽查是否移交纪检!', {icon: 5});
                        return;
                    } else {
                        data.jcsfyjjj = jcsfyjjj
                    }
                    data.__xm = null;
                    CoreUtil.sendPost('/attention/attentionMgr/saveClcfjdbb', data, function (res) {
                        layer.msg(res.msg);
                        searchWbc();
                        searchYbc();
                        ajdx = null;
                        sfyjga = null;
                        jcsfyjjj = null;
                    });
                    break;
            }
        });
        table.on('tool(ycljdsTable)', function (obj) {
            const data = obj.data;
            switch (obj.event) {
                case 'save':
                    if (!data.ajdx) {
                        layer.msg('请先选择案件定性!', {icon: 5});  // 弹出提示
                        return;  // 终止后续代码执行
                    } else {
                        data.ajdx = ajdx
                    }
                    if (!data.ssje) {
                        layer.msg('请填写涉税金额!', {icon: 5});
                        return;
                    }
                    if (!data.fpfs) {
                        layer.msg('请填写发票份数!', {icon: 5});
                        return;
                    }
                    if (!data.sfyjga) {
                        layer.msg('请填写是否移交公安!', {icon: 5});
                        return;
                    } else {
                        data.sfyjga = sfyjga
                    }
                    if (!data.jcsfyjjj) {
                        layer.msg('请填写稽查是否移交纪检!', {icon: 5});
                        return;
                    } else {
                        data.jcsfyjjj = jcsfyjjj
                    }
                    data.__xm = null;
                    CoreUtil.sendPost('/attention/attentionMgr/saveClcfjdbb', data, function (res) {
                        layer.msg(res.msg);
                        searchWbc();
                        searchYbc();
                        ajdx = null;
                        sfyjga = null;
                        jcsfyjjj = null;
                    });
                    break;
            }
        });

        // 页面查询条件重置按钮
        form.on('submit(reset)', function () {
            document.getElementById('searchForm').reset(); // 原生重置表单
            $('#time').val(''); // 清空输入框
            startTime = null; // 重置开始时间
            endTime = null; // 重置结束时间
            form.render(); // 重新渲染 Layui 的动态组件
        })

        //导出
        $("#exportBtn").click(function () {
            layer.confirm('确定导出所有数据?', {icon: 3, title: '提示'}, function (index) {
                const ajztDms = form.val('searchForm0')['sdztDm0'];  // 替换 'yourFormId' 为你的表单 ID
                let whereParams = {
                    "jcajbh": $("#jcajbh0").val(),
                    "nsrsbh": $("#nsrsbh0").val(),
                    "nsrmc": $("#nsrmc0").val(),
                    "startTime": startTime0,
                    "endTime": endTime0,
                    "ajjcztDm": ajztDms,
                    "tbbz": "Y"
                };
                CoreUtil.sendPost('/attention/attentionMgr/exportClcfjdbbTable', whereParams, function (res) {
                    if (res.code === 0) {
                        const data = res.data;
                        if (!CoreUtil.isEmpty(data)) {
                            //全部导出
                            table.exportFile(tableIns3.config.id, data, 'xls');
                            //导出时阻止页面刷新
                            $(".layui-form").submit(function (e) {
                                e.preventDefault();
                            })
                        } else {
                            layer.alert('未查询到需要导出的数据！', {icon: 2});
                        }
                    }
                });
                layer.close(index);
            });
        });
    });

    document.getElementById('reset0').addEventListener('click', function () {
        document.getElementById('searchForm0').reset(); // 原生重置表单
        $('#time0').val(''); // 清空输入框
        startTime0 = null; // 重置开始时间
        endTime0 = null; // 重置结束时间
        form.render(); // 重新渲染 Layui 的动态组件
    });

    // 页面查询方法
    function searchWbc() {
        const sfcls = document.getElementById("sdztDm").value;
        let whereParams = {
            "jcajbh": $("#jcajbh").val(),
            "nsrsbh": $("#nsrsbh").val(),
            "nsrmc": $("#nsrmc").val(),
            "startTime": startTime,
            "endTime": endTime,
            "sfcls": sfcls,
            "tbbz": "N"
        };
        tableIns1.reload({
            contentType: 'application/json',
            headers: {"authorization": token},
            where: whereParams,
            method: 'POST',
            page: {
                curr: 1 // 重新从第 1 页开始
            }
        }, false);
    }

    // 页面查询方法
    function searchYbc() {
        const sfcls = document.getElementById("sdztDm0").value;
        let whereParams = {
            "jcajbh": $("#jcajbh0").val(),
            "nsrsbh": $("#nsrsbh0").val(),
            "nsrmc": $("#nsrmc0").val(),
            "startTime": startTime0,
            "endTime": endTime0,
            "sfcls": sfcls,
            "tbbz": "Y"
        };
        tableIns2.reload({
            contentType: 'application/json',
            headers: {"authorization": token},
            where: whereParams,
            method: 'POST',
            page: {
                curr: 1 // 重新从第 1 页开始
            }
        }, false);
    }
</script>
</body>
</html>